package com.maimao.api.mall.info;

import com.maimao.core.model.resp.Result;
import com.maimao.model.info.Address;
import com.maimao.model.info.MgCoupon;
import com.maimao.model.info.vo.CouponSearch;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author MaoLin Wang
 * @date 2020/12/29 9:29 下午
 */
@Api(value = "收货地址")
@RequestMapping("/info/address")
public interface AddressApi {

    @ApiOperation("添加收货地址")
    Result<?> addAddress(Address address, BindingResult bindingResult);

    @ApiOperation("更新收货地址")
    Result<?> updateAddress(Address address, BindingResult bindingResult);

    @ApiOperation("删除地址")
    Result<?> deleteAddress(Map<String, String> data);

    @ApiOperation("设为默认地址")
    Result<?> setDefault(Map<String, String> data);

    @ApiOperation("登录用户收货地址列表")
    Result<?> addressData();

    @ApiOperation("查询用户默认地址")
    Result<?> defaultAddress(Long userId);

}
